function z=mm2dpval(p,x,y)
%MM2DPVAL Two-Dimensional Polynomial Evaluation. (MM)
% MM2DPVAL(P,X,Y) evaluates 2D polynomial P at the values in
% in X and Y. X and Y must be the same size and can be the
% plaid output of MESHGRID.
%
% The polynomial fit contains terms up to X^Nx and Y^Ny and all
% possible crossproduct terms X^iY^j where i<=Nx, j<=Ny and
% i+j<=max(Nx,Ny).
%
% See also MM2DPFIT, MM2DPSTR.

% D.C. Hanselman, University of Maine, Orono, ME  04469
% 12/6/96, v5: 1/14/96, 5/30/97
% Mastering MATLAB 5, Prentice Hall, ISBN 0-13-858366-8

